package com.shop.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.multipart.MultipartFile;

@FeignClient("file")
public interface FileService {

    @PostMapping(value = "shopFile/upload/logo", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    String uploadLogo(MultipartFile file);

    @PostMapping(value = "shopFile/upload/description", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    String uploadDescription(MultipartFile file);

}
